package LECONGHAU.OOP.EXCERCISE01.BAI3;

import java.util.Scanner;

public class CONTROLLER {
	String kg;
public void nhap(){
	do{
		System.out.println("nhap vao so kg");
		Scanner sc=new Scanner(System.in);
		kg=sc.nextLine();
		if(kg.isEmpty()||Double.parseDouble(kg)<0){
			System.out.println("vui long nhap vao so kg");
		}
	}while(kg.isEmpty()||Double.parseDouble(kg)<0);
}
public double Poundcontroller(double kilogram ){
	 kilogram=Double.parseDouble(kg);
	 double sopound=kilogram*2.2;
	return sopound;
}
}
